package org.dtrd.modules.patient.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 分组-患者
 * </p>
 *
 * @author QR
 * @since 2021-10-03
 */
@Data
public class DtrdRlGroupPatient {

    @TableId(value = "data_id", type = IdType.AUTO)
    private Integer dataId;

    /**
     * 医生关联患者所属分组ID
     */
    private Integer groupId;

    private Integer patientId;

    private Date createTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDel;

    public DtrdRlGroupPatient init() {
        this.setCreateTime(new Date());
        this.setIsDel(0);
        return this;
    }

}
